//
//  KFDDetailedDiagramViewModel.h
//  KFD
//
//  Created by JIRENTIANXIANG on 7/3/15.
//  Copyright © 2015 kfd. All rights reserved.
//

#import "KFDViewModel.h"
#import "KFDClient.h"
#import "BBStockChart.h"
#import "KFDDiagramPoints.h"

#define KFDDetailedDiagramViewShouldUpdateNotification @"KFDDetailedDiagramViewShouldUpdate"

@class JRTXDiagramPoint;

@interface KFDDetailedDiagramViewModel : KFDViewModel

@property (strong,nonatomic) NSArray* marketPrices;
@property (assign,nonatomic) NSInteger currentPriceIndex;
@property (strong,atomic) KFDDiagramPoints* diagramPoints5Minutes;
@property (strong,atomic) KFDDiagramPoints* diagramPoints15Minutes;
@property (strong,nonatomic) KFDDiagramPoints* diagramPoints30Minutes;
@property (strong,nonatomic) KFDDiagramPoints* diagramPoints1Hour;
@property (strong,nonatomic) KFDDetailedMarketPrice* detailedMarketPrice;

-(void)loadDetailedMarketPrice;

-(void)loadDiagramPointsWithPeriod:(KFDDiagramDataPeriod)period completionHandler:(KFDViewModelLoadDataCompletionHandler)completionHandler;

-(BOOL)loadLeftPointOfPeriodType:(KFDDiagramDataPeriod)period;

@end
